<!-- Begin hrmd/primes.tpl -->
<form method="post" action="?module=hrmd&action=bonus_team&submit=true">
{opentable}
{titlebar colspan=2 title=$lg->bonus_team}
<tr>{$year}</tr>
<tr>{$team}</tr>
<tr>	
	<td class="sectiontableentry1" colspan="2"><input type="submit" name="submit" class="button" align="left" value={$lg->OK} /></td>
</tr>
</table>
</form>

{opentable}
{if is_array($t_edit) }
	{if is_array($t_perio) }
		<tr class="sectiontableheader" align="center" >
			<td width="15%">{$lg->user}</td>
			<td width="10%" >{$lg->primes}</td>
		{foreach from=$t_perio key=ltext item=s_perio}
			<td width="20%">{$ltext}</td>
		{/foreach}
		</tr>
	{/if}
	{foreach from=$t_edit key=idusr item=t_users}
		<tr class="sectiontableentry2">
			<td colspan=2 ><a href="?module=hrmd&action=primes&idusr={$idusr}"> {username id=$idusr}</a></td>
			{foreach from=$t_usr_tot[$idusr] key=key item=s_usr_tot}
				<td align="center">{$s_usr_tot|string_format:"%.0f"}</td>
			{/foreach}			
		</tr>
	
		{foreach from=$t_users key=bonid item=t_bonus}
			<tr class="sectiontableentry1">
			<td ></td>
				<td >{$t_bo01[$bonid]}</td>
				{foreach from=$t_bonus key=key item=s_bonus}
					<td align="center">{$s_bonus.bonus.value|string_format:"%.0f"} </td>
				{/foreach}
				</tr>
		{/foreach}
		
	{/foreach}
		<br>
		<tr class="sectiontableentry2">
			<td align="left" colspan = 2><b>{$lg->total}: {$nbusr} {$lg->users}</b></td>
			{foreach from=$t_total key=ltext item=s_total}
				<td  align="center"><b>{$s_total|string_format:"%.0f"}</b></td>
			{/foreach}
					
		</tr>
		{foreach from=$t_totpr key=bonid item=t_totdt}
		<tr class="sectiontableentry1">
			<td></td>
			<td align="left" nowrap>{$lg->total} {$t_bo01[$bonid]}</td>
			{foreach from=$t_totdt key=ltext item=s_total}
				<td  align="center">{$s_total|string_format:"%.0f"} </td>
			{/foreach}
		</tr>
		{/foreach}		
	
{/if}
</table>
<br>
<!-- End hrmd/primes.tpl -->